package com.pangdonghao.internationalizationdemo.exception;

import com.pangdonghao.internationalizationdemo.core.response.StatusCode;

@SuppressWarnings("serial")
public class DemoException extends BaseException {

    public DemoException() {
        super();
    }

    public DemoException(String message) {
        super(message);
    }

    public DemoException(StatusCode statusCode) {
        super(statusCode);
    }

    public DemoException(StatusCode statusCode, String message) {
        super(statusCode, message);
    }

    public DemoException(String message, Throwable ex) {
        super(message, ex);
    }

    @Override
    protected StatusCode getStatusCode() {
        return super.statusCode != null ? super.statusCode : StatusCode.USER_EXCEPTION;
    }

}
